It works by splitting the string into two pieces. On the first line it pulls out firstLetter and then on the second line it capitalises firstLetter by calling ... ... <看更多>
Search
Search
It works by splitting the string into two pieces. On the first line it pulls out firstLetter and then on the second line it capitalises firstLetter by calling ... ... <看更多>
... <看更多>
Changing first letter of string to uppercase */. String.prototype.toFirstUpperCase = function(){. return this.slice(0,1).toUpperCase()+this.slice(1);. }. ... <看更多>